<?php if( $data['is_ajax'] !== 1 ) :?>
<include file="inc:header" />
<div class="page" id='{$data.act}'>
<include file="inc:title" />
<div class="content pull-to-refresh-content">
<?php endif; ?>
<!-- 这里是页面内容区 -->

<div class="pull-to-refresh-layer">
    <div class="preloader"></div>
    <div class="pull-to-refresh-arrow"></div>
</div>
<!--网站主页-->
    <div class="swiper-container" data-space-between='10' data-autoplay="5000">
	    <div class="swiper-wrapper">
	    <!--	<foreach name="$data.index_list.adv_list" item="adv" key="k">
	    	<div class="swiper-slide"><a href="#" onclick="RouterURL('{$adv.data}','#adv_{$adv.open_url_type}',1);" style="background-image:url('{$adv.img}')"></a></div>
	    	</foreach>
		-->	
	    </div>
	    <if condition="($data.index_list.adv_list) ">
	    <div class="swiper-pagination"></div>
	    </if>
	 </div>	
	 <img src="./public/images/home_banner.png" alt="" style="width:100%">

		<ul class="recommended_nav_2">

			<foreach name="data['index_list']['deal_list']" item="deal" >
			<li class="clearfix" onclick="RouterURL('{:U('deal/index',array('id'=>$deal['id']) )}','#Deal',2)">

				<div class="title_nav bb1">
					<if condition="($deal.is_wait eq 1)">
							<span class="state  c666666"  style="color:#f43731;border-right:1px solid #f43731">
			            	<else/>
							<if condition=" $deal.deal_status eq 0"><span class="state  c666666"></if>
							<if condition=" $deal.deal_status eq 1 and $deal.remain_time gt 0"><span class="state  c56b1ea"  style="color:#f43731;border-right:1px solid #f43731"></if>
							<if condition=" $deal.deal_status eq 1 and $deal.remain_time lt 0"><span class="state  c666666"  style="color:#f43731;border-right:1px solid #f43731"></if>
							<if condition=" $deal.deal_status eq 2"><span class="state  ea544a"  style="color:#f43731;border-right:1px solid #f43731"></if>
							<if condition=" $deal.deal_status eq 3"><span class="state  c666666"  style="color:#f43731;border-right:1px solid #f43731"></if>
							<if condition=" $deal.deal_status eq 4"><span class="state  c66d191"  style="color:#f43731;border-right:1px solid #f43731"></if>
							<if condition=" $deal.deal_status eq 5"><span class="state  c666666"  style="color:#f43731;border-right:1px solid #f43731"></if>
					</if>

					<if condition="$deal.is_wait eq 1">未开始
						<else/>
						<if condition=" $deal.deal_status eq 0">等待材料</if>
						<if condition=" $deal.deal_status eq 1 && $deal.remain_time gt 0">进行中</if>
						<if condition=" $deal.deal_status eq 1 && $deal.remain_time lt 0">已过期</if>
						<if condition=" $deal.deal_status eq 2">已满标</if>
						<if condition=" $deal.deal_status eq 3">已流标</if>
						<if condition=" $deal.deal_status eq 4">还款中</if>
						<if condition=" $deal.deal_status eq 5">已还清</if>
					</if>
					</span>
					<span class="name" style="color:#000;width:55%">{$deal.name}</span>
					<span class="r_state" style="color:#999;font-size:13px">{$deal.loantype|loantypename="1"}</span>
				</div>
				<div class=" con_height" style="text-align:center">
					<div class="  w_b  pt tc">
						<div class=" tl lv" style="padding-left:0px">
							<i class="big" style="color:#f43731;">{$deal.rate}</i>
							<i class="unit" style="color:#f43731;font-size:1.2rem;">%</i>
							<p style="color:#999;font-size:12px">年利率</p>
						</div>
						<div class=" tl je" style="width:15%;">
							<i class="small" style="font-size:15px;color:#000;line-height:2rem">{$deal.borrow_amount|replacemoney}</i><i class="unit" style="font-size:15px;color:#000">万</i>
							<p style="color:#999;font-size:12px">金额</p>
						</div>
						<div class=" tl sj" style="width:14%;"><i class="small" style="font-size:15px;color:#000;line-height:2rem">{$deal.repay_time}</i><i class="unit" style="font-size:15px;color:#000"><if condition=" $deal.repay_time_type eq 1">月<else/>天</if></i>
							<p style="color:#999;font-size:12px">期限</p>
						</div>
						<div class="w_b_f_1"></div>
						<div  class="progress-radial_parent ">
							<div class='progress-radial  progress-<if condition="($deal.deal_status gt 4)">100<else/>{$deal.progress_point}</if>
							<if condition=" $deal.is_wait eq 1"> c999999
			            	<else/>
							<if condition=" $deal.deal_status eq 0">  c999999 </if>
							<if condition=" $deal.deal_status eq 1 and $deal.remain_time gt 0">  c56b1ea </if>
							<if condition=" $deal.deal_status eq 1 and $deal.remain_time lt 0">  c999999 </if>
							<if condition=" $deal.deal_status eq 2">  ea544a </if>
							<if condition=" $deal.deal_status eq 3">  c999999  </if>
							<if condition=" $deal.deal_status eq 4">  c66d191  </if>
							<if condition=" $deal.deal_status eq 5">  c999999  </if>
							</if>
							'><b></b></div>
						</div>
					</div>


			</li>
			</foreach>
		</ul>
		<div style="background-color:#fff;text-align:center;width:100%;padding:10px 0" class="clearfix">
			<div style="width:50%;float:left">
				<p style="color:#4e82e7;font-size:18px">{$data.virtual_money_1}<span style="font-size:12px">万元</span></p>
				<p style="color:#999">累计成交额</p> 
			</div>
			<div style="width:50%;float:right">
				<p style="color:#4e82e7;font-size:18px">{$data.virtual_money_2}<span style="font-size:12px">万元</span></p>
				<p style="color:#999">总创造收益</p> 
			</div>
		</div> 
		<div style="text-align:center;background-color:#fff;padding:10px 0;box-shadow:0 3px 3px 3px#E8E9EE;margin-top:10px">
			<p style="color:#000;margin-bottom:10px">了解一直投</p>
			<img src="./public/images/xss-97.png" alt="" style="width:90%;margin-left:5%">
		</div>
		<div style="background-color:#fff;text-align:center;padding:10px 0;margin-top:10px">
			<img src="./public/images/xss-122.png" alt="" style="width:11px;margin-right:6px">银行资金存管系统对接中
		</div>


<?php if( $data['is_ajax'] !== 1 ) :?>
<include file="inc:footer" />
<?php endif; ?>